Skip to content

refactor: remove claude wrapper, run claude directly#65

Merged
robbycochran merged 7 commits into
mainfrom
rc-simplify-payload
Jun 13, 2026
Merged

refactor: remove claude wrapper, run claude directly#65
robbycochran merged 7 commits into
mainfrom
rc-simplify-payload

Conversation

@robbycochran

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the claude wrapper script (sandbox/bin/claude) that passed --bare --dangerously-skip-permissions — both are already handled by config files:
    • settings.json: defaultMode=bypassPermissions, skipDangerousModePermissionPrompt=true
    • claude.json: hasCompletedOnboarding=true
  • Stop moving the real binary to claude-real in the Dockerfile — claude runs directly from the base image
  • Remove --bare from test entrypoints and test-flow smoke test

Test plan

  • make test passes
  • CI passes
  • Manually verify claude starts clean inside a sandbox (no onboarding, no permission prompts)

The wrapper script passed --bare and --dangerously-skip-permissions to
claude, but both are already handled by config files:
- settings.json: defaultMode=bypassPermissions, skipDangerousModePermissionPrompt=true
- claude.json: hasCompletedOnboarding=true

Remove the wrapper, stop moving the real binary to claude-real in the
Dockerfile, and let the base image's claude run directly.
Place the agent instructions at /sandbox/.claude/CLAUDE.md (the user's
global CLAUDE.md path) instead of /sandbox/CLAUDE.md. Claude Code reads
this automatically without needing it in the working directory.
Base CLAUDE.md is now generic (sandbox environment only). At startup,
provider-specific tool docs are appended based on which credentials
are available:
- GitHub: appended when gh is authenticated
- Jira/Confluence: appended when JIRA_URL is set
- GWS: appended when GOOGLE_WORKSPACE_CLI_TOKEN is set

This way the agent only sees docs for tools it can actually use.
startup.sh was sourcing a sandbox.env file that nothing generates and
running gh auth setup-git which was duplicated in run.sh. Remove both.

Agent now runs gh auth setup-git on demand when it needs git auth,
guided by CLAUDE.md instructions. Env vars are injected via --env on
sandbox create, no env file needed.
@robbycochran robbycochran merged commit 816d5a4 into main Jun 13, 2026
5 checks passed
@robbycochran robbycochran deleted the rc-simplify-payload branch June 13, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant